<!DOCTYPE html>
<html>
<head>
    <title>编辑软广内容 - 合同 {{ contract.id }}</title>
    <style>
        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background-color: #f8f9fa;
            margin: 0;
            padding: 40px 20px;
        }

        .editor-container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s;
        }

        h2 {
            color: #2d3436;
            margin-bottom: 30px;
            font-size: 28px;
            border-bottom: 2px solid #6c5ce7;
            padding-bottom: 15px;
        }

        form {
            display: grid;
            gap: 25px;
        }

        .form-group {
            position: relative;
        }

        label {
            display: block;
            margin-bottom: 8px;
            color: #495057;
            font-weight: 600;
            font-size: 15px;
        }

        textarea, input[type="text"] {
            width: 100%;
            padding: 12px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 15px;
            transition: all 0.3s ease;
        }

        textarea:focus, 
        input[type="text"]:focus {
            outline: none;
            border-color: #6c5ce7;
            box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
        }

        textarea {
            min-height: 120px;
            resize: vertical;
        }

        button[type="submit"] {
            background: linear-gradient(135deg, #6c5ce7, #8e7cf3);
            color: white;
            padding: 14px 28px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            width: fit-content;
            margin-top: 15px;
        }

        button[type="submit"]:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
        }

        @media (max-width: 768px) {
            .editor-container {
                padding: 25px;
                margin: 20px;
            }
            
            h2 {
                font-size: 24px;
            }
        }
    </style>
</head>
<body>
    <div class="editor-container">
        <h2>编辑广告内容 - 合同 #{{ contract.id }}</h2>
        <form method="POST">
            {% csrf_token %}
            <div class="form-group">
                <label>文本内容：</label>
                <textarea name="content" placeholder="请输入广告文案..." required></textarea>
            </div>

            <div class="form-group">
                <label>图片路径：</label>
                <input type="text" name="image_path" placeholder="例如：/static/images/ad-image.jpg">
            </div>

            <div class="form-group">
                <label>视频路径：</label>
                <input type="text" name="video_path" placeholder="例如：/static/videos/ad-video.mp4">
            </div>

            <button type="submit">提交内容</button>
        </form>
    </div>
</body>
</html>